﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Gerencial_Fisio_Nutry.MicroTela
{
    public partial class MovimentaValor : Form
    {
        int cod_movi;

        public MovimentaValor(int cod_movi, string descricao)
        {
            InitializeComponent();
            label2.Text = descricao;
            this.cod_movi = cod_movi;
        }

        private void btConfirm_Click(object sender, EventArgs e)
        {
                try
                {
                    new Banco.MetodoBanco().insereMovimentacao(cod_movi, Convert.ToDouble(jbData.Text));
                }
                catch { }
            
            this.Close();
        }

        private void btCancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
